package com.water.camera.kt

import com.snap.common.main.BaseMVVMAct
import com.snap.view.ActionBarAdapter.setBack
import com.water.camera.R
import com.water.camera.databinding.ActBuyBinding

class BuyAct : BaseMVVMAct<ActBuyBinding, BuyVM>() {

    override fun createVM(): BuyVM {
        return BuyVM().apply {
            back = { finish() }
        }
    }

    override fun doDataBind() {
        binding.ryPriceVM = RyPriceVM()
        binding.viewModel = viewModel
    }

    override fun getContentViewId(): Int {
        return R.layout.act_buy
    }

    override fun onCreate() {
        ShareVM.isOutWithBuy = true
        binding.actionBar.setBack { finish() }
    }
}
